package com.zem.imos.Entity.Params;

import com.zem.imos.Entity.Enum.Marriage;
import lombok.Data;

@Data
public class ParamsPatient extends ParamsUser{

    private Integer marriage;
    private Integer weight;
    private Integer height;
    private String address;
    private String bloodtype;

    private Long timestamp; //就诊时间
    private Integer status; //就诊状态
    private Long date; //挂号时选择的期望就诊时间
    private Integer period; // 就诊区间
    private Long drugId;
    private String drugName;
    private Integer drugsOrderNum; //开药数量,不是药品库存
    private Integer drugNum; //库存数量
    private Long drugTimestamp; // 开药时间
    private Long registerId;
    private Long doctorId;
    private String name; //名称（患者、医生、管理员）

    public Integer getMarriage() {
        if(this.marriage == null)
            return 0;
        else return this.marriage;
    }

}

